removeModifier

abstract fun removeModifier(block: DesignBlock, index: Int)

Removes the modifier at the given index from the modifiers of a shape. The modifier is not destroyed. Required scope: "shape/change" on every block that uses the shape. Experimental: this API may change in a minor release.

Parameters

block

the shape to update.

index

the index of the modifier to remove.